/* General styles for the modal */

/*
Styles for the html/body for special modal where we want 3d effects
Note that we need a container wrapping all content on the page for the
perspective effects (not including the modals and the overlay).
*/
.md-perspective,
.md-perspective body {
	height: 100%;
	overflow: hidden;
}

.md-perspective body  {
	background: #222;
	-webkit-perspective: 600px;
	-moz-perspective: 600px;
	perspective: 600px;
}

.md-modal {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 60%;
	/*max-width: 630px;
	min-width: 320px;*/
	height: 100%;
	z-index: 2000;
	display: none;
	-webkit-transform: translateX(-50%) translateY(-50%);
	-moz-transform: translateX(-50%) translateY(-50%);
	-ms-transform: translateX(-50%) translateY(-50%);
	transform: translateX(-50%) translateY(-50%);
}

.md-show {
	/*visibility: visible;*/
	display: block;
}

.md-overlay {
	position: fixed;
	width: 100%;
	height: 100%;
	display: none;
	top: 0;
	left: 0;
	z-index: 1000;
	opacity: 0;
	background: #fff;
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
}

.md-show ~ .md-overlay {
	opacity: 1;
	display: block;
}

/* Content styles */
.md-content {
	background: #F6F6F3;
	position: relative;
	margin: 0 auto;
	padding: 3% 5%;
}

.md-content h1 {
	margin-top: 0;
	text-align: center;
}

.md-content-main {
	margin-bottom: 30px;
}
.md-content-main img {
    max-width: 100%;
}
.md-content-main code,
.md-content-main pre {
    padding: 2px 4px;
    background: #F0F0EC;
    font-size: .92857em;
}
.md-content-main code {
    color: #C13;
}
.md-content-main pre {
    padding: 1em;
}
.md-content-main pre code {
    padding: 0;
    color: #444;
}
.md-content-main blockquote {
    margin: 1em 1.5em;
    padding-left: 1.5em;
    border-left: 4px solid #E9E9E6;
    color: #777;
}
.md-content-main hr {
    margin: 2em auto;
    width: 100px;
    border: 1px solid #E9E9E6;
    border-width: 2px 0 0 0;
}

.md-content button {
	display: block;
	margin: 0 auto;
	font-size: 0.8em;
}

/* Individual modal styles with animations/transitions */

/* Effect 12:  Just me */
.md-effect-12 .md-content {
	-webkit-transform: scale(0.8);
	-moz-transform: scale(0.8);
	-ms-transform: scale(0.8);
	transform: scale(0.8);
	opacity: 0;
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
}

.md-show.md-effect-12 ~ .md-overlay {
	background: #fff;
}

.md-effect-12 .md-content h3,
.md-effect-12 .md-content {
	background: #F6F6F3;
}

.md-show.md-effect-12 .md-content {
	-webkit-transform: scale(1);
	-moz-transform: scale(1);
	-ms-transform: scale(1);
	transform: scale(1);
	opacity: 1;
}

@media screen and (max-width: 32em) {
	body { font-size: 75%; }
}